package org.wby.jwt.config.props;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "jwt")
public class SecurityProperties {
    /**
     * 秘钥
     */
    private String secKey;
    /**
     * 算法
     */
    private  String alg;
    /**
     * 类型
     */
    private  String typ;
    /**
     * 签发者
     */
    private  String iss;
    /**
     * 过期时间
     */
    private  Long exp;

    public static void main(String[] args) {
        SecurityProperties securityProperties = new SecurityProperties();
        String secKey1 = securityProperties.getSecKey();
        System.out.println(secKey1);
    }
}
